/*
 * Created on 04.02.2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
 
package org.jchains.intercept;


/**
 * @author Marc
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */

public class JavaWebStartSecurity extends JChainsSecInterceptor {

	public void checkAwtEventQueueAccess() {
		super.checkAwtEventQueueAccess();
	//	if (!AppContextUtil.isApplicationAppContext()
	//		&& currentJNLPClassLoader() != null)
	//		super.checkAwtEventQueueAccess();
	}

//	private JNLPClassLoader currentJNLPClassLoader() {
	//	Class aclass[] = getClassContext();
	//	for (int i = 0; i < aclass.length; i++) {
	//		ClassLoader classloader = aclass[i].getClassLoader();
	//		if (classloader instanceof JNLPClassLoader)
	//			return (JNLPClassLoader) classloader;
	//	}
//
//		ClassLoader classloader1 =
//			Thread.currentThread().getContextClassLoader();
//		if (classloader1 instanceof JNLPClassLoader)
//			return (JNLPClassLoader) classloader1;
//		else
//			return (JNLPClassLoader) null;
//	}

//	public Class[] getExecutionStackContext() {
//		return super.getClassContext();
//	}

}
